 // 设置时间  时间戳  最新活动的时间戳
 function countdowntime(now,end , warpbox){
    let box_day=warpbox.find(".motai .t");   //天
    let box_h=warpbox.find(".motai .h");   //小时
    let box_m=warpbox.find(".motai .m");   //分钟
    let box_s=warpbox.find(".motai .s");   //分钟
      function countTime(value) {
          //获取结束时间-当前时间
          var date = new Date();
          var nowday = date.getTime();
              nowday=Math.floor(nowday/1000);
          var day, h, m, s;
          if ( nowday > now && end >=nowday) {
              var differTime = end - nowday;
              day = Math.floor(differTime / 3600 / 24);
              h = Math.floor((differTime / 3600 ) % 24);
              m = Math.floor((differTime % 3600)/60);
              s = Math.floor((differTime % 3600)%60);
              day= day < 10 ? ("0" + day) : day;
              h = h < 10 ? ("0" + h) : h;
              m = m < 10 ? ("0" + m) : m;
              s = s < 10 ? ("0" + s) : s;
                  box_day.text(day);
                  box_h.text(h);
                  box_m.text(m);
                  box_s.text(s);
              setTimeout(function () {
                   countTime(value);
              }, 1000);
          }else{
              box_h.text(0);
              box_m.text(0);
          }
      }
      countTime();
  }

  